module.exports = {
   listen_port : 4000,                       //监听端口
   book_error_path: '/docs/about/error.html',      //书籍异常页面
   hooks_book: {
      password: '112358',           //book hooks 密码
      ref: 'refs/heads/master',     //关心的分支
      repository: 'jufan-docs'      //仓库名
   },
   hooks_self: {
      password: '112358',              //web hooks 密码
      ref: 'refs/heads/master',        //关心的分支
      repository: 'docs-publish'       //仓库名
   },
   mail: {
      host: 'smtp.163.com',
      port: 25,
      secure: false,
      auth: {
         user: 'zzu_laboratory@163.com',
         pass: 'zzu123456'
      }
   },
   self_manager: ['lian@jufantech.com'],
   manager: {
      dev:  ['lian@jufantech.com'],
      proc: ['lian@jufantech.com', 'jin@jufantech.com', '1875295084@qq.com', '1037661635@qq.com', '1145383063@qq.com']
   },
  
   user_agent : 'node docs-publish 1.0.beta',    //agent，没有使用
   db3: 'docs.db3',
   log4js_conf : {
      dev: {
         appenders : {
            app: {
               type: 'file',
               filename: 'logs/app.log',
               maxLogSize: 1024000000,
               backups: 30,
            },
            console: { type: 'console' }
         },
         categories: {
            default: {
               appenders: ['app', 'console'],
               level: 'DEBUG'
            }
         }
      },
      prod: {
         appenders : {
            app: {
               type: 'file',
               filename: '/var/project/docs-publish/logs/app.log',
               maxLogSize: 1024000000,
               backups: 30,
            }
         },
         categories: {
            default: {
               appenders: ['app'],
               level: 'DEBUG'
            }
         },
         pm2: true
      }
   }
};
